package com.marktotop.learntwo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 用户实体类
 * @author WXLD
 * @data 2021/4/18 - 18:40
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class TbUser {
    private int id;
    private String username;
    private String password;
    private int sex;
    private String avatar;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date createTime;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date modifyTime;
}
